package com.example.pceb.service.Impl;

import com.example.pceb.entity.School;
import com.example.pceb.mapper.SchoolMapper;
import com.example.pceb.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SchoolServiceImpl implements SchoolService {
    @Autowired
    private SchoolMapper schoolMapper;

    @Override
    public School getById(Integer id) {
        return schoolMapper.selectById(id);
    }

    @Override
    public int countAllSchools() {
        return schoolMapper.countAllSchools();
    }
}